<template>
  <div class="contact-us">
    <h2 class="title">联系我们</h2>
    <div class="content">
      <div class="contact-info">
        <a-row :gutter="[24, 24]">
          <a-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
            <a-card class="contact-card">
              <template #cover>
                <EnvironmentOutlined class="contact-icon" />
              </template>
              <a-card-meta title="公司地址">
                <template #description> 上海市浦东新区张江高科技园区 </template>
              </a-card-meta>
            </a-card>
          </a-col>
          <a-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
            <a-card class="contact-card">
              <template #cover>
                <PhoneOutlined class="contact-icon" />
              </template>
              <a-card-meta title="联系电话">
                <template #description>400-820-8820</template>
              </a-card-meta>
            </a-card>
          </a-col>
          <a-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
            <a-card class="contact-card">
              <template #cover>
                <MailOutlined class="contact-icon" />
              </template>
              <a-card-meta title="电子邮箱">
                <template #description>support@shihuo.cn</template>
              </a-card-meta>
            </a-card>
          </a-col>
        </a-row>
      </div>
      <div class="business-hours">
        <h3>营业时间</h3>
        <p>周一至周五：9:00 - 18:00</p>
        <p>周六至周日：10:00 - 16:00</p>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import {
  EnvironmentOutlined,
  PhoneOutlined,
  MailOutlined,
} from "@ant-design/icons-vue";
</script>

<style scoped>
.contact-us {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #333;
}

.contact-info {
  margin-bottom: 48px;
}

.contact-card {
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 36px;
  color: #1890ff;
  margin: 24px 0;
}

.business-hours {
  background: #f9f9f9;
  padding: 24px;
  border-radius: 8px;
}

.business-hours h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #333;
}

.business-hours p {
  color: #666;
  line-height: 1.8;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
  .title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .contact-info {
    margin-bottom: 32px;
  }

  .contact-card {
    margin-bottom: 16px;
  }
}

/* 大屏幕优化 */
@media screen and (min-width: 1920px) {
  .contact-us {
    max-width: 1400px;
  }

  .title {
    font-size: 28px;
  }

  .contact-icon {
    font-size: 42px;
  }
}
</style>
